<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<h1>文章列表</h1>
	<table>
		<tr>
			<td>序号</td>
			<td>标题</td>
			<td>评论数</td>
			<td>操作</td>
		</tr>
		{foreach $data as $k=>$v}
		<tr>
			<td>{$v.art_id}</td>
			<td>{$v.title}</td>
			<td>{$v.num}</td>
			<td><a href="index.php?module=article&action=del&id={$v.art_id}" onclick="return confirms();"><span >删除</span></a>
				| <a href="index.php?module=article&action=edit&id={$v.art_id}" >修改</a>
			</td>
		</tr>
		{/foreach}
	</table>
</body>
<script>
	function confirms(){
		var c = confirm('确定删除该文章及该文章下所有评论吗？');
		if(c == false){
			return false;
		}
	}
</script>
</html>